package com.yhb.channel.impl.BJCJ.http.Response.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yhb.channel.impl.BJCJ.BJCJConstant;
import lombok.Data;

@Data
public class BJCJBaseResponseData {
    private String code; // 应答码
    private String message; // 应答信息

    @JsonIgnore
    public boolean isSuccess() {
        return BJCJConstant.CHANNEL_SUCCESS_CODE.equals(this.code) ||
                BJCJConstant.CHANNEL_DOING_REMIT_CODE.equals(this.code);
    }
}
